$argsQuery = array( 'posts_per_page' => 3, 'post_type' => 'download', 'category__not_in' => 5 , // Category id to exclude );